package com.tadpole.music.view.single;

import java.util.ArrayList;
import java.util.List;

/**
 * Created By 孙岩
 * on 2020/9/16
 */
public class ErrIdSelectedSingle {
    private static ErrIdSelectedSingle errIdSelectedSingle;

    private List<Integer> list = new ArrayList<Integer>();

    public static ErrIdSelectedSingle getInstance() {
        if (errIdSelectedSingle == null) {
            synchronized (ErrIdSelectedSingle.class) {
                if (errIdSelectedSingle == null) {
                    errIdSelectedSingle = new ErrIdSelectedSingle();
                }
            }
        }
        return errIdSelectedSingle;
    }


    //添加
    public void addWorks(Integer bean) {
        list.add(bean);
    }

    //获取集合
    public List<Integer> getWorksList() {
        return list;
    }

    //清空
    public void clearList() {
        list.clear();
    }

}
